package demo4;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 刘远望
 * Date: 2025-03-17
 * Time: 22:23
 */
public class Bird extends Animal implements IFly{
    public Bird(String name, int age) {
        super(name, age);
    }
    @Override
    public void fly() {
        System.out.println(this.name + "正在飞");
    }
    @Override
    public void eat() {
        System.out.println(this.name + "正在吃虫子");
    }
}
